refactor search for python_cmd in PythonPackage and PythonBundle easyblocks#3475
Conversation
Avoid old-style formatting by using f-strings where possible or simple concatenation.
The logic to find an appropriate `python` executable is duplicated in the 2 easyblocks leading to slightly diverging implementations. Combine them into a single function with minor adjustments.
|
Test report by @Flamefire Overview of tested easyconfigs (in order)
Build succeeded for 13 out of 13 (13 easyconfigs in total) |
|
Test report by @Micket Overview of tested easyconfigs (in order)
Build succeeded for 3 out of 3 (3 easyconfigs in total) |
|
Test report by @Micket Overview of tested easyconfigs (in order)
Build succeeded for 2 out of 2 (2 easyconfigs in total) |
python_cmdpython_cmd in PythonPackage and PythonBundle easyblocks
Factor out
find_python_cmdfromPythonPackageandPythonBundleThe logic to find an appropriate
pythonexecutable is duplicated in the 2 easyblocks leading to slightly diverging implementations.Combine them into a single function with minor adjustments.